<?php



require_once("./connect.php");

$ini=parse_ini_file('config.ini',false);

//$con = mysql_connect($ini['dbName'],$ini['dbUser'],$ini['dbPass']);

$abc=$_POST['to_save'];
$temp='userid';
if(mysql_select_db($ini['dbName']))
{
    $q="INSERT INTO `cards`( `json`, `userId`  )VALUES('$abc', '$temp');";
    echo $q;
    if(mysql_query($q))
    {
       // echo "inserted";
    }
    else
    {
        //echo "not inserted";
    }
}

 else{
 
    
    //echo "connected";
}

?>